//scgen
package action

import (
	"study/app3/source/test/entity"
	"study/app3/source/test/log"

	"github.com/zsxm/scgo/chttp"
)

func init() {
	chttp.Action("/test/index", index).Get()
}

//gen
func index(c chttp.Context) {
	e := entity.NewTest()
	c.BindData(e)
	c.JSON(e.JSON(), true)
	log.Debug("dddddddddddddddddddddddddddddddddddddddddddddd")
	log.Info("fffffffffffffffffffffffffffff")
}
